# create by wayne manually for port pc ezfb into moto a1200's mobilinux platform 
CC = arm-linux-g++ -fno-exceptions -fno-rtti -Wall -Wall -Os -I. -I../imagecore/wrapper -o $@ -c 
LN = arm-linux-g++ -lm -o
SP = arm-linux-strip
RM = rm -f -r
DU = dos2unix

API_OBJS = ezfb_device.o ezfb_fonts.o ezfb_pixels.o

all : DOS2UNIX $(API_OBJS)

DOS2UNIX:
	$(DU) *.cpp *.h

ptezfb: ptezfb.o $(API_OBJS)
	$(LN) ptezfb ptezfb.o $(API_OBJS) ../imagecore/cximage/*.o ../imagecore/jpeg/*.o ../imagecore/png/*.o ../imagecore/wrapper/*.o ../imagecore/zlib/*.o
	$(SP) ptezfb

ptezfb.o: ptezfb.cpp ezfb.h ezfb_includes.h ezfb_macros.h ezfb_types.h
	$(CC) ptezfb.cpp

ezfb_device.o   : ezfb_device.cpp ezfb_device.h ezfb_includes.h ezfb_macros.h ezfb_types.h 
	$(CC) ezfb_device.cpp

ezfb_fonts.o    : ezfb_fonts.cpp ezfb_pixels.h ezfb_fonts.h ezfb_includes.h ezfb_macros.h ezfb_types.h
	$(CC) ezfb_fonts.cpp

ezfb_pixels.o   : ezfb_pixels.cpp ezfb_pixels.h ezfb_includes.h ezfb_macros.h ezfb_types.h
	$(CC) ezfb_pixels.cpp

clean  :
	$(RM) ptezfb *.o *~